// VSCtxMenuFixApp.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "VSCtxMenuFixApp.h"

// Global Variables
HINSTANCE g_hInst = NULL;

int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR, int)
{
    g_hInst = hInstance;

    CMyApp cApp;
    if (!cApp.Success())
    {
        return FALSE;
    }

    if (!CMyAppStartup::DoesAppStartWhenWindowsStarts())
    {
        if (MessageBox(NULL, CMyResources::GetStartQuestion(), CMyResources::GetAppTitle(), MB_ICONQUESTION | MB_OKCANCEL | MB_DEFBUTTON2))
        {
            CMyAppStartup::SetAppStartsWhenWindowsStarts();
        }
    }

    MSG msg;
    while (GetMessage(&msg, NULL, 0, 0))
    {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }

    return (int)msg.wParam;
}
